local tuicheng = fk.CreateSkill{
    name = "ym2__tuicheng",
}
Fk:loadTranslationTable{
    ["ym2__tuicheng"] = "推诚",
    [":ym2__tuicheng"] = "出牌阶段限一次，你可以将一张伤害牌当无次数限制的基本牌对两名角色使用，然后你令其中一名角色获得此牌。",
}
tuicheng:addEffect("active",{
    max_phase_use_time = 1,
    can_use = function (self, player)
        return self:withinTimesLimit(player,Player.HistoryPhase)
    end,
    card_num = 1,
    card_filter = function (self, player, to_select, selected, selected_targets)
        return #selected == 0 and Fk:getCardById(to_select).is_damage_card
    end,
    target_num = 2,
    target_filter = function (self, player, to_select, selected, selected_cards, card, extra_data)
        if self.interaction.data and #selected_cards > 0 then
            local c = Fk:cloneCard(self.interaction.data)
            c:addSubcards(selected_cards)
            c.skillName = tuicheng.name
            return player:canUseTo(c,to_select,{bypass_times = true}) or to_select:canUseTo(c,to_select,{bypass_times = true})
        end
        return false
    end,
    interaction = function (self, player)
        local names = Fk:getAllCardNames("b")
        return UI.CardNameBox { choices = names}
    end,
    on_use = function (self, room, effect)
        local player = effect.from
        local tos = effect.tos
        local card = Fk:cloneCard(self.interaction.data)
        card:addSubcards(effect.cards)
        card.skillName = tuicheng.name
        room:useCard{
            from = player,
            tos = tos,
            card = card,
        }
    end,
})
return tuicheng